﻿<?php
if(get_theme_option('recent_thumbnails') == 'true') {
?>  
<ul><li><h2><?php _e('Articles Récents'); ?></h2></li></ul>
<div class="recentposts">
    <ul>
    	<?php
            query_posts('posts_per_page=5');
            
            if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                <li class="clearfix">
                <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(90,60), array("class" => "alignleft")); } ?>
                    <a class="recentpoststitle" href="<?php the_permalink() ?>" rel="bookmark" title="Lien permanent pour <?php the_title_attribute(); ?>"><?php the_title(); ?></a> <br />
                    <?php echo custom_shorten (get_the_excerpt(), 16); ?> <a class="recentpostsmore" href="<?php the_permalink() ?>" rel="bookmark" title="Lien permanent pour <?php the_title_attribute(); ?>">Lire plus &raquo;</a>
                </li>
            <?php
            endwhile; 
            endif;
            wp_reset_query();
        ?>
    
    </ul>
</div>

<?php } ?>
